package server.mapper;

import java.util.List;

/**
 * Host标签解析后的内容
 */
public class MappedHost {

    /**
     * 主机名
     */
    private String hostName;

    /**
     * 项目基础目录
     */
    private String appBase;

    /**
     * 一个Host下可以配置多个Context
     */
    private List<MappedContext> mappedContextList;

    public MappedHost(String hostName, String appBase, List<MappedContext> mappedContextList) {
        this.hostName = hostName;
        this.appBase = appBase;
        this.mappedContextList = mappedContextList;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getAppBase() {
        return appBase;
    }

    public void setAppBase(String appBase) {
        this.appBase = appBase;
    }

    public List<MappedContext> getMappedContextList() {
        return mappedContextList;
    }

    public void setMappedContextList(List<MappedContext> mappedContextList) {
        this.mappedContextList = mappedContextList;
    }
}
